<?php
/*
	生成首页静态页
*/
defined('IN_IXDCW') or exit('Access Denied');

$str = $usertype.$cityid.'.';
$filename =  DT_ROOT.'/file/cache/index_cache/index_'.$str.$DT['file_ext'];



if(!$DT['index_html']) {
	if(is_file($filename)) unlink($filename);
	return false;
}

if($file_name = dirname($filename)){
	if(!file_exists($file_name)){
		mkdir($file_name,true);
	}
}

ob_start();
if($usertype== 'company'){
	$seo_title = '企业版_'.$DT['seo_title'];
	include template('index-company');
}else{
	$isIndex = 1;
	include template('index');
}
$data = ob_get_contents();
ob_clean();
file_put_contents($filename, $data);
return true;
?>